Twitsnip is a place to post code snippets and share them. Login with your existing Twitter account, if you don't have a Twitter account simply create on at www.twitter.com

Welcome to Twitsnip code snippets repository

Twitsnip is a place to post useful code snippets and share them with the community.

Easily post your snippets to Twitter, no need to create a new account simply use your existing Twitter account, if you don't have a Twitter account simply create on at www.twitter.com

Recent Snippets

PHP function to check lenght of string

0

This was the first function I ever wrote and I still use it in nearly every PHP application I create.

Disable Directory Browsing

0

A snippet to disable directory browsing with an htaccess file

Function to clean POST variables

0

This functions allows you to filter any post data ready for insertion into MySQL

Image Preloader

0

In case you need to preload images before the loading of your page completes, use the following technique. Just add the images’ paths to the DIV class, and call the DIV in your HTML. The DIV will not be visible but the images will preload nicely.

Login function

0

These functions will login a user based on a username and password being matched in a mysql database.